package cn.csxw.openchina.ui.fragment;

import java.util.ArrayList;

import cn.csxw.openchina.base.BaseTabRefreshFragment;
import cn.csxw.openchina.base.BaseRefreshFragment;
import cn.csxw.openchina.ui.fragment.syntheticalFragment.BlogFragment;
import cn.csxw.openchina.ui.fragment.syntheticalFragment.HotFragment;
import cn.csxw.openchina.ui.fragment.syntheticalFragment.InformationFragment;
import cn.csxw.openchina.ui.fragment.syntheticalFragment.RecommendFragment;

/**
 * 综合页面，包含一个ViewPager，其中有4个Fragment
 * 分别是 资讯，热点，博客，推荐
 */
public class SyntheticallyFragment extends BaseTabRefreshFragment {
    private  static final  String []  title = {"资讯","热点","博客","推荐"};
    @Override
    protected String[] getTitle() {
        return title;
    }
    @Override
    protected ArrayList<BaseRefreshFragment> getFragmentList() {
        ArrayList<BaseRefreshFragment> fragmentList = new ArrayList<>();
        fragmentList.add(new InformationFragment());
        fragmentList.add(new HotFragment());
        fragmentList.add(new BlogFragment());
        fragmentList.add(new RecommendFragment());
        return fragmentList;
    }
}
